package com.jiangruan.javaproject.service;/**
 * @author:xulonghua
 * @email:3162193565@qq.com
 * desc:获取指定高度区块的哈希
 * datatime 2021/12/13 22:05
 */

import com.alibaba.fastjson.JSONObject;
import com.jiangruan.javaproject.Constants;
import com.jiangruan.javaproject.bean.Getblockhash;

/**
 *@author:xulonghua
 *@email:3162193565@qq.com
 *desc:
 *datetime 2021/12/13 22:05
 */
public class GetBlockHash {
    public Getblockhash getblockhash(int id , int Height){
        String result = UtilCommon.utilcommon ( id, Constants.GetBlockHash, Height );
        //json解析
        Getblockhash getBlockHash = JSONObject.parseObject ( result, Getblockhash.class );
       return  getBlockHash;
    }
}
